package com.systop.busafter.user.service.impl;
import com.systop.commer.pojo.User;
import com.systop.busafter.user.mapper.UserMapper;
import com.systop.busafter.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public int updatauser(User user) {
        return userMapper.updatauser(user);
    }

    @Override
    public int zcinsertuser(User user) {
        return userMapper.zcinsertuser(user);
    }

    @Override
    public User userLogin(User user) {
        return userMapper.userLogin(user);
    }

    @Override
    public User numuserLogin(User user) {
        return userMapper.numuserLogin(user);
    }

    @Override
    public List<User> userListall() {
        return userMapper.userListall();
    }

    @Override
    public List<User> userIdlist(int user_id) {
        return userMapper.userIdlist(user_id);
    }

    @Override
    public int deleteuser(int user_id) {
        return userMapper.deleteuser(user_id);
    }

    @Override
    public List<User> userNamelist(String user_name) {
        return userMapper.userNamelist(user_name);
    }

    @Override
    public List<User> userZhlist(String user_name_n) {
        return userMapper.userZhlist(user_name_n);
    }

    @Override
    public User userZhlist1(String user_name_n) {
        return userMapper.userZhlist1(user_name_n);
    }

    @Override
    public List<User> userNumlist(String user_number) {
        return userMapper.userNumlist(user_number);
    }

    @Override
    public List<User> usercard(String user_card) {
        return userMapper.usercard(user_card);
    }
}
